package PTA1.ti5;

import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String choice = scanner.nextLine();
        while(!choice.equals("end")){
            switch (choice){
                case "double":
                    double a = scanner.nextDouble();
                    double b = scanner.nextDouble();
                    double c = scanner.nextDouble();
                    System.out.println(scanner.nextDouble());
                    break;
                case "char":
                    System.out.println(scanner.next().charAt(0));
                    break;
                case "String":
                    System.out.println(scanner.nextLine());
                    break;
            }
        }
    }
}
